<div class="cfg-header-tab">
    <span class="item {if $action == 'edit'}on{/if}"  data-action="edit" ><s></s>基本资料</span>
    <span class="item {if $action == 'jifen_list'}on{/if}" data-action="jifen_list"><s></s>积分信息</span>
    <span class="item {if $action == 'order_list'}on{/if}" data-action="order_list"><s></s>订单信息</span>
    {if St_Functions::is_normal_app_install('system_wallet')}
    <span class="item {if $action == 'wallet_list'}on{/if}" data-action="wallet_list"><s></s>余额信息</span>
    {/if}
</div>

<script>
    $(function () {
        //切换
        $('.cfg-header-tab').find('span').click(function () {
            if($(this).hasClass('on'))
            {
                return false;
            }
            var action = $(this).attr('data-action');
            var mid = $("input[name='mid']").val();
            var url = SITEURL + "member/" + action+"/menuid/{$_GET['menuid']}/mid/"+mid;
            location.href = url;
        })
    })
</script>